
 var req =new XMLHttpRequest();
 var credential=document.querySelector(".credential");
 req.open("GET","http://liuyujing.com:3389/certificate");
 req.onload=function () {
     console.log(this.response)
     var d=JSON.parse(this.response).cers;

     for(var i=0;i<d.length;i++){
         console.log(d[i])

         var img =document.createElement("img")
         img.src=d[i];
         credential.appendChild(img)
     }
 };
req.send();

